package com.AAL.DAO.Interface;

import java.sql.Date;
import java.util.List;

import com.AAL.Model.City;
import com.AAL.Model.Dealer;
import com.AAL.Model.Order;
import com.AAL.Model.StatusOfOrder;

public interface IOrderDAO {
	public Order saveAndUpdateOrder(Order order);
	public Order deleteOrder(int orderID);
	public Order getOrder(int orderID);
	/*
	 * Lay tat ca cac don dat hang cua dealer theo ngay va trang thai cua don hang
	 */
	public List<Order> getOrderByDealer(Dealer dealer, Date fromDate, Date toDate, StatusOfOrder status);
	/*
	 * Lay cac don dat hang moi
	 * Nhung don hang moi la nhung don hang ma chua mot HO nao xu lay ca. Chua phan cho bat ki HO nao
	 */
	public List<Order> getNewOrderByCity(City city, boolean isProcessed);
	/*lay tat ca cac order*/
	public List<Order> GetAllOrder();
}
